﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tzq.DataService.Factory
{
    /// <summary>
    /// 数据库连接工厂
    /// </summary>
    public sealed class ConnectionFactory
    {
        /// <summary>
        /// 爬虫库读库
        /// </summary>
        public static IDbConnection SpiderDBRead
        {
            get { return ConnectionConfig.GetConnection("SpiderDBRead"); }
        }

        /// <summary>
        /// 爬虫库写库
        /// </summary>
        public static IDbConnection SpiderDBWrite
        {
            get { return ConnectionConfig.GetConnection("SpiderDBWrite"); }
        }
    }
}
